import os

def run_make(folder_path):
    
    for root, dirs, files in os.walk(folder_path):
        
        if "Makefile" in files:
            
            os.chdir(root)
            os.system("make")


folder_path = "/home/zb/Dateset/C/testcases"


run_make(folder_path)
